home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20020314-20021006
/
000363_mswarbrick@rentokil.com_Mon Sep 16 09:54:17 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
49 lines
Article: 13696 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: mswarbrick@rentokil.com (Mark Swarbrick)
Newsgroups: comp.protocols.kermit.misc
Subject: scripting to a serial sms modem - idiot question!
Date: 16 Sep 2002 06:37:17 -0700
Organization: http://groups.google.com/
Lines: 31
Message-ID: <e516d9ec.0209160537.450ca7b@posting.google.com>
NNTP-Posting-Host: 213.2.60.82
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1032183437 3265 127.0.0.1 (16 Sep 2002 13:37:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 16 Sep 2002 13:37:17 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13696
Hello all
What I am trying to do is this:
I have a seimens sms modem connected to /dev/ttyS0 and i can
communicate with it fine on the command line.
A website is created to allow users on our intranet to sms other
users, so it's simply two dialogue boxes with the number and the
message. This then gets written to a file which is called in the
script and wrapped with the necessary commands.
All i need to be run is this script
<start kermit>
set modem type usr
set line /dev/ttyS0
set speed 9600
set carrier-watch off
connect
at+cmgf=1
at+cmgs="+44123456789"
<send ctrl+z>
<then exit cleanly out of kermit>
How can i do this as kermit goes into interactive mode as soon as i
issue the connect command! How can i automate this?
many thanks gurus!
mark